package com.smarthealthring.mm.ui.fragment;

import android.support.v4.content.ContextCompat;

import com.smarthealthring.mm.R;
import com.smarthealthring.mm.base.BaseFragment;
import com.smarthealthring.mm.base.IPresenter;
import com.smarthealthring.mm.utils.statusbar.StatusBarCompat;

/**
 * Created by hewei26 on 2018/4/8.
 */

public class SecurityFragment extends BaseFragment {
    @Override
    protected int getLayoutId() {
        return R.layout.frag_security;
    }

    @Override
    protected void initEventAndData() {
        StatusBarCompat.setStatusBarColor(mActivity, ContextCompat.getColor(mActivity,R.color.title_orange));
    }

    @Override
    protected IPresenter createPresenter() {
        return null;
    }

    @Override
    protected boolean isLazyLoad() {
        return false;
    }

    public static SecurityFragment getInstance() {
        return new SecurityFragment();
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        if (!hidden) {
            StatusBarCompat.setStatusBarColor(mActivity, ContextCompat.getColor(mActivity,R.color.title_orange));
        }
    }
}
